import { Dictionary, Material } from "./basic";
import { WorkerSo } from "./workerSo";

export namespace SoReport {
  // 分拣报工保存
  export interface Save {
    workerId: number;
    sourceId: string;
    sourcePackage: string;
    packageType: Dictionary.Types["containerType"];
    materialId: number;
    packageNum?: string;
    sumWeight: number;
    tareWeight: number | string;
    netWeight: number;
    warehouse: string;
    remark: string;
    douser: string;
    mname?: string;
  }

  //查询时间段内报工明细
  export interface ReqSearch {
    startTime: string;
    endTime: string;
    materialId: string;
    warehouse: string;
    workerId: string;
  }

  // 分拣报工明细
  export interface SearchDetail {
    records: SearchDetailProp[];
    count: number;
    sum: number;
  }

  // 分拣报工明细 字段
  export interface SearchDetailProp extends Material.M_SearchProp, WorkerSo.W_Search {
    materialObj: Material.ResSearch;
    packageNum: number;
    sumWeight: number;
    tareWeight: number;
    netWeight: number;
    warehouse: string;
    remark: string;
    douser: string;
    dotime: string;
    uptime: null;
    flagSend: number;
    sendTime: null;
    flagAccept: number;
    acceptTime: null;
    id: number;
    workerId: number;
    workerObj: null;
    sourceId: number;
    sourcePackage: number;
    materialId: number;
  }
}
